import request from '@/utils/request'

// 查询销户销记录列表
export function listAccount(query) {
  return request({
    url: '/basedata/account/list',
    method: 'get',
    params: query
  })
}

// 查询销户销记录详细
export function getAccount(ID) {
  return request({
    url: '/basedata/account/' + ID,
    method: 'get'
  })
}

// 新增销户销记录
export function addAccount(data) {
  return request({
    url: '/basedata/account',
    method: 'post',
    data: data
  })
}

// 修改销户销记录
export function updateAccount(data) {
  return request({
    url: '/basedata/account',
    method: 'put',
    data: data
  })
}

// 删除销户销记录
export function delAccount(ID) {
  return request({
    url: '/basedata/account/' + ID,
    method: 'delete'
  })
}
